/*
 * @Author: your name
 * @Date: 2021-11-17 13:15:30
 * @LastEditTime: 2021-12-31 16:37:21
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \vue-antd-admin-yarn\src\services\admin.js
 */
import {mineMsgApi,adminRoleListApi,adminAddApi,adminEditApi,adminSelOneApi,adminListApi,checkUserNameApi,adminAvatarApi,adminSelectListApi} from '@/services/api'
import {request, METHOD
  // , removeAuthorization
} from '@/utils/request'


export  function adminRoleList(formData) {
  return request(adminRoleListApi, METHOD.POST, formData)
}
export  function adminAdd(formData) {
  return request(adminAddApi, METHOD.POST, formData)
}
export  function adminEdit(formData) {
  return request(adminEditApi, METHOD.POST, formData)
}
export  function adminSelOne(formData) {
  return request(adminSelOneApi, METHOD.POST, formData)
}
export  function adminList(formData) {
  return request(adminListApi, METHOD.POST, formData)
}
export  function checkUserName(formData) {
  return request(checkUserNameApi, METHOD.POST, formData)
}
export  function adminAvatar(formData) {
  return request(adminAvatarApi, METHOD.POST, formData)
}

export  function adminSelectList(formData){
  return request(adminSelectListApi, METHOD.POST, formData)
}

export function mineMsg(formData){
  return request(mineMsgApi,METHOD.POST, formData)
}









export default {
   adminRoleList,
   adminAdd,
   adminEdit,
   adminSelOne,
   adminList,
   checkUserName,
   adminAvatar,
   mineMsg
}
